<!DOCTYPE html>
<html>
    <!--
        1.引入vue.js
        2.实例化vue
        3.设置唯一根元素，传入初始化的配置选项

    -->
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="a1">
            {{name}}
        </div>
        <div id="app">
            {{name}}
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data: {
                    name:'Vue实例创建成功！'
                }
            });
        </script>
    </body>
</html>